function addCart(bookId) {
    window.location.href = "cart.do?operate=addCart&bookId=" + bookId;
}

function pageByPrice() {
    var minPrice = document.getElementById("minPrice").value;
    var maxPrice = document.getElementById("maxPrice").value;
    window.location.href = "book.do?minPrice=" + minPrice + "&minPrice=" + minPrice + "&operate=pageByPrice";
}